<?php
session_start();
include_once "sitereg/regfunctions.php";

$MyPage = $_SERVER['PHP_SELF'];
reg_CheckAccess($MyPage);

?>
<html>
<head>
<title>Test Protected Page</title>
</head>
<body>
<h2>Test Protected Page</h2>
<h3>User ID: <?php print $_SESSION['user_id'] ?> </h3>
<a href="sitereg/login.php?logmode=logout">Logout</a>
</body>
</html>